// Created by Joe on 2017/8/1.

app.directive(
    'noInfo',
    function () {
        return {
            restrict: 'E',
            scope: {
                width: '@niWidth',
                height: '@niHeight',
                top: '@niTop'
            },
            template: '<div class="ni__setting">' +
            '<div class="ni__content">' +
            '<div class="ni__icon"></div><p class="ni__notice">暂无数据</p>' +
            '</div></div>',
            link: function (scope, ele) {
                ele.find('.ni__setting').css({
                    width: scope.width || '100%',
                    height: scope.height || '100%'
                });

                ele.find('.ni__content').css({
                    top: scope.top
                });
            }
        };
    }
);